const router = require("koa-router")();
const { getaddres, search, addNewdreass, deleteRent, changeRentl, find, findRental, deleteAdd, updataAddre, changePage, Rental, RentalSearch } = require("../controller/home");
const auth = require("../middleware/auth");


router.get('/getaddres', getaddres)
router.post('/changepage', changePage)

router.post('/search', search)
router.post('/addNewdreass', addNewdreass)
router.post('/Rental', Rental)
router.post('/RentalSearch', RentalSearch)
router.post('/deleteAdd', deleteAdd)
router.post('/updataAddre', updataAddre)
router.post('/find', find)
router.post('/findRental', findRental)
router.post('/changeRentl', changeRentl)
router.post('/deleteRent', deleteRent)
module.exports = router